<?php

namespace common\base;

/**
 * OrderNoInterface is the interface that should be implemented by a class providing identity information.
 *
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
interface UniqueNoInterface {

    /**
     * Finds an identity by the given ID.
     * @param string|int $id the ID to be looked for
     * @return IdentityInterface the identity object that matches the given ID.
     * Null should be returned if such an identity cannot be found
     * or the identity is not in an active state (disabled, deleted, etc.)
     */
    public function generateNo();
}
